import request from '@/utils/request'


export function listCaseInfo(query) {
  return request({
    url: '/case/info/list',
    method: 'get',
    params: query
  })
}

// 查询角色详细
export function getCaseInfo(caseId) {
  return request({
    url: '/case/info/' + caseId,
    method: 'get'
  })
}

// 新增角色
export function addCaseInfo(data) {
  return request({
    url: '/case/info',
    method: 'post',
    data: data
  })
}

// 修改角色
export function updateCaseInfo(data) {
  return request({
    url: '/case/info',
    method: 'put',
    data: data
  })
}

// 批量导入案件信息
export function importCaseInfo(data) {
  return request({
    url: '/case/info/importData',
    method: 'post',
    headers: { "Content-Type": "application/x-www-form-urlencoded" },
    data: data,
  })
}
